Skip to content

Stg102/create file with data#48164

Open
browndav-msft wants to merge 6 commits intoAzure:feature/storage/stg102basefrom
browndav-msft:stg102/createFileWithData
Open

Stg102/create file with data#48164
browndav-msft wants to merge 6 commits intoAzure:feature/storage/stg102basefrom
browndav-msft:stg102/createFileWithData

Conversation

@browndav-msft
Copy link
Member

Readding the feature that was pulled from STG100

@github-actions github-actions bot added the Storage Storage Service (Queues, Blobs, Files) label Feb 27, 2026
- filePropertySemantics was not getting passed as an arg for the function in ShareDirectoryClient or ShareDirectoryAsyncClient
- created recordings for the new tests
@browndav-msft browndav-msft marked this pull request as ready for review March 3, 2026 23:28
Copilot AI review requested due to automatic review settings March 3, 2026 23:28
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Reintroduces the “create file with initial content” and “file property semantics” support (previously pulled) for Azure Storage File Share, while also bumping storage service versions to 2026-06-06 across related modules.

Changes:

  • Add filePropertySemantics and BinaryData payload support back into ShareFileCreateOptions and wire it through sync/async create calls.
  • Add filePropertySemantics support back into ShareDirectoryCreateOptions and wire it through sync/async create calls.
  • Update service version enums/defaults/tests to 2026-06-06 and re-enable the previously pulled tests.

Reviewed changes

Copilot reviewed 19 out of 19 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
sdk/storage/azure-storage-queue/src/main/java/com/azure/storage/queue/QueueServiceVersion.java Add 2026-06-06 service version and set it as latest.
sdk/storage/azure-storage-file-share/src/test/java/com/azure/storage/file/share/FileAsyncApiTests.java Re-enable async tests for create-with-data and property semantics; bump required version.
sdk/storage/azure-storage-file-share/src/test/java/com/azure/storage/file/share/FileApiTests.java Re-enable sync tests for create-with-data and property semantics; bump required version.
sdk/storage/azure-storage-file-share/src/test/java/com/azure/storage/file/share/DirectoryAsyncApiTests.java Re-enable async directory tests for property semantics; bump required version.
sdk/storage/azure-storage-file-share/src/test/java/com/azure/storage/file/share/DirectoryApiTests.java Re-enable sync directory tests for property semantics; bump required version.
sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/options/ShareFileCreateOptions.java Restore filePropertySemantics + BinaryData fields and accessors.
sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/options/ShareDirectoryCreateOptions.java Restore filePropertySemantics field and accessors.
sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/ShareServiceVersion.java Add 2026-06-06 service version and set it as latest.
sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/ShareFileClient.java Wire filePropertySemantics + initial data into sync create request.
sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/ShareFileAsyncClient.java Wire filePropertySemantics + initial data into async create request and MD5 handling.
sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/ShareDirectoryClient.java Wire filePropertySemantics into sync directory create request.
sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/ShareDirectoryAsyncClient.java Wire filePropertySemantics into async directory create requests.
sdk/storage/azure-storage-file-share/assets.json Update assets tag reference.
sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/util/TransformUtils.java Refactor version conversion logic and add 2026-06-06 mapping.
sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeServiceVersion.java Add 2026-06-06 service version and set it as latest.
sdk/storage/azure-storage-common/src/main/java/com/azure/storage/common/implementation/UploadUtils.java Restore sync computeMd5(ByteBuffer, ...) helper.
sdk/storage/azure-storage-common/src/main/java/com/azure/storage/common/implementation/Constants.java Bump default SAS service version/target version string to 2026-06-06.
sdk/storage/azure-storage-common/ci.system.properties Update CI system properties to use 2026-06-06.
sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/BlobServiceVersion.java Add 2026-06-06 service version and set it as latest.

Copy link
Member

@ibrandes ibrandes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this needs to be changed to point to the stg 102 feature branch rather than main. also, copilot left some comments that should be addressed imo.

@@ -1829,20 +1833,19 @@ public void directoryExistsHandlesParentNotFound() {
response.getHeaders().getValue(ERROR_CODE_HEADER_NAME));
}

/* PULLED FROM RELEASE
@RequiredServiceVersion(clazz = BlobServiceVersion.class, min = "2026-02-06")
@RequiredServiceVersion(clazz = BlobServiceVersion.class, min = "2026-06-06")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

create file with data still uses service version 2026-02-06

@browndav-msft browndav-msft changed the base branch from main to feature/storage/stg102base March 5, 2026 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Storage Storage Service (Queues, Blobs, Files)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants